<template>
  <div>
    <el-form-item :label="$t('designer.setting.contentHeight')">
      <el-input type="text" v-model="thisOptionModel.contentHeight"></el-input>
    </el-form-item>
  </div>
</template>

<script>
  export default {
    name: "contentHeight-editor",
    mixins: [],
    props: {
      designer: Object,
      selectedWidget: Object,
      optionModel: Object,
    },
    data() {
      return {
      	thisOptionModel:this.optionModel,
      }
    },
    created() {

    },
	  watch: {
		  'optionModel': {
			  handler(val) {
				  if (val) {
					  this.thisOptionModel = val
				  }
			  }
		  },
	  },
    mounted() {
      this.designer.handleEvent('field-selected', (parentWidget) => {
        this.subFormChildWidgetFlag = !!parentWidget && (parentWidget.type === 'sub-form');
        //console.log('subFormChildWidgetFlag', this.subFormChildWidgetFlag)
      })
    }
  }
</script>

<style scoped>

</style>
